import Layout from "@/layout";
import emptyLayout from "@/layout/emptyRouter.vue";

export default {
    path: "/course",
    meta: {
        title: "课程管理",
        roles: ["courseManage"],
        icon: "el-icon-s-platform"
    },
    component: Layout,
    redirect: "/agentManage",
    children: [

        {
            path: "aliyun-video-list",
            meta: {
                title: "阿里云视频列表",
                roles: ["courseManage:aliyunVideoList"],
                icon:"el-icon-s-grid",
                noCache: false,
            },
            component: () => import("@/views/models/course/aliyunVideoList.vue"),
            name: "AliyunVideoList"
        },
        {
            path: "video-list",
            meta: {
                title: "视频列表",
                roles: ["courseManage:videoList"],
                icon:"el-icon-s-grid",
                noCache: false,
            },
            component: () => import("@/views/models/course/videoList.vue"),
            name: "videoList"
        },
        {
            path: "video-chapter-list",
            meta: {
                title: "视频章节列表",
                roles: ["courseManage:videoChapterList"],
                icon:"el-icon-s-grid",
                noCache: false,
            },
            component: () => import("@/views/models/course/videoChapterList.vue"),
            name: "videoChapterList"
        },{
            path: "video-note-list",
            meta: {
                title: "视频笔记审核",
                roles: ["courseManage:videoNoteList"],
                icon:"el-icon-s-grid",
                noCache: false,
            },
            component: () => import("@/views/models/course/video-note/index.vue"),
            name: "videoVideoList"
        },
        {
            path: "live-list",
            meta: {
                title: "直播列表",
                roles: ["courseManage:liveList"],
                icon:"el-icon-s-grid",
                noCache: false,
            },
            component: () => import("@/views/models/course/liveList.vue"),
            name: "liveList"
        },
    ]
}
